package cn.hit.tianqiao.service.impl;


import cn.hit.tianqiao.dao.HotelDao;
import cn.hit.tianqiao.dao.impl.HotelDaoImpl;
import cn.hit.tianqiao.domain.Hotel;
import cn.hit.tianqiao.service.HotelService;

import java.util.List;

public class HotelServiceImpl implements HotelService {
    HotelDao dao = new HotelDaoImpl();

    @Override
    public List<Hotel> findHotelsWithinDistance(double longitude, double latitude, double distance) {
        return dao.findWithinDistance(longitude, latitude, distance);
    }
}
